﻿<Window x:Class="USMC.Net.GridSelectionWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Сетка" WindowStartupLocation="Manual" Width="Auto" Height="Auto" SizeToContent="WidthAndHeight" WindowStyle="ToolWindow" Background="White">
    <StackPanel>
        <CheckBox Name="chb1">Показыввать сетку</CheckBox>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch">
            <Label>Интервал</Label>
            <TextBox Name="textBox" HorizontalAlignment="Stretch" IsEnabled="{Binding ElementName=chb1, Path=IsChecked}" Width="60" />
            <Label>(1/8 шага)</Label>
        </StackPanel>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
            <Button Width="50" Margin="10" Click="Button_Click">Отмена</Button>
            <Button Width="50" Margin="10" Click="Button_Click_1">ОК</Button>
        </StackPanel>
    </StackPanel>
</Window>
